Check if discovery paths are empty before logging
authorFelix <felix-git@0xf.eu>
Wed, 8 Jan 2025 12:45:41 +0000 (13:45 +0100)
committerMatthieu Gallien <matthieu.gallien@nextcloud.com>
Thu, 23 Jan 2025 19:45:09 +0000 (20:45 +0100)
Signed-off-by: Felix <felix-git@0xf.eu>
src/libsync/syncengine.cpp

index 30fa24115bb0f3795b4ab90144a3ba94acd9e3b0..8367dfa40796a47a5e486d9b113d458a84f57431 100644 (file)
@@ -1216,7 +1216,7 @@ void SyncEngine::setLocalDiscoveryOptions(LocalDiscoveryStyle style, std::set<QS
     _localDiscoveryStyle = style;
     _localDiscoveryPaths = std::move(paths);
 
-    if (lcEngine().isInfoEnabled()) {
+    if (lcEngine().isInfoEnabled() && !_localDiscoveryPaths.empty()) {
         // only execute if logging is enabled
         auto debug = qInfo(lcEngine);
         debug << "paths to discover locally";